﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LoginDomain.ascx.cs" Inherits="Member_Control_LoginDomain" %>

<script src="/js/jquery.base64.js" type="text/javascript"></script>

<script src="/Member/js/login.js" type="text/javascript"></script>
<style type="text/css">
    table.login
    {
    	border-collapse: collapse;
    	font-family:Arial;
    	margin-top:30px;
    }
    
    .login td
    {
        padding: 2px 0;
    }
    .login .lbl
    {
    	padding-right:4px;
    }
</style>
<table class="login" border="0" cellpadding="1" cellspacing="0" align="center">
    <tr>
        <td>
            <table border="0" cellpadding="0" class="login">
                <tr>
                    <td align="center" colspan="2" style="font-size: 12px; font-weight: bold;">
                        Đăng Nhập
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl">
                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="txtUserName">Tên 
                                        đăng nhập</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserName" runat="server" Width="150px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="txtUserName"
                            ErrorMessage="Nhập tên đăng nhập" ToolTip="Nhập tên đăng nhập" ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl">
                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="txtPassword">Mật 
                                        khẩu</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Width="150px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="txtPassword"
                            ErrorMessage="Nhập mật khẩu" ToolTip="Nhập mật khẩu" ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lbl">
                        Chọn chi nhánh
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlBranch" runat="server" Width="152px" AppendDataBoundItems="true"
                            ValidationGroup="Login1">
                            <asp:ListItem Value="">Chọn chi nhánh</asp:ListItem>
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ddlBranch"
                            ErrorMessage="Chọn chi nhánh" ToolTip="Chọn chi nhánh" ValidationGroup="Login1" Enabled="false">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2" style="color: Red;">
                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Đăng nhập"
                            ValidationGroup="Login1" onclick="LoginButton_Click" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
